package ExamLab.Test2;

abstract class AbsA{
    public void play()throws InterruptedException{
         System.out.print("Playing AbsA");
    }
}

abstract class AbsB extends AbsA{
    public abstract void play();
}

class NonC extends AbsB{
    public void play(){
         System.out.print("Playing NonC");
    }
}

class NonD extends NonC{
    public void play(){
         System.out.print("Playing NonD");
    }
}

public class MC{
    public static void main(String args[])throws Exception{
         AbsA d=new NonC();
         d.play();
    }
}